﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PhanCongGiangDayDetails.aspx.cs" Inherits="QuanLyNhanVien_PhanCongGiangDayDetails" %>


<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link rel="stylesheet" href="../css/pop-up.css"/>
<script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="../js/popup.js"></script>
<link href="../css/common.css" rel="stylesheet"/>
    <link href="../css/tiny.css" rel="stylesheet"/>
    <link href="../css/colorbox.css" rel="stylesheet"/>
    <link href="../css/context.css" rel="stylesheet"/>
    <script type="text/javascript" src="../js/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="../js/jquery.easing.1.3.js"></script>
	<script type="text/javascript" src="../js/jquery.colorbox-min.js"></script>
    <script type="text/javascript" src="../js/jquery.ui.position.js"></script>
    <script type="text/javascript" src="../js/jquery.contextMenu.js"></script>
    <script type="text/javascript" src="../js/jsapi.js"></script>
    <script type="text/javascript" src="../js/scroll-tiny.js"></script>
    <script type="text/javascript" src="../js/index.js"></script>
    <script type="text/javascript" src="../js/utility1.js"></script> 
    <script>
        function loadGrid() {
            $('.grid .bottom').height(510);
        }
         </script>
</head>

<body>
  <form id="form1" runat="server" method="post">
	<section class="wrapper-pop-up-width-500">
    	<header>
        	<h1 class="heading-pop-up-width-500">Phân lớp</h1>
            <ul class="top-icon-pop-up-width-500">
            	<li><a class="dropdown" data-dimension="550|360" href="#"></a></li>
                <li><a class="maximum" data-dimension="100%|100%" href="#"></a></li>
                <li><a class="minimum" data-dimension="550|360" href="#"></a></li>
                <li><a class="turn-off" data-dimension="550|360" href="#"></a></li>
            </ul>
        </header>
        <section class="content-pop-up-width-500">
      <fieldset style="color:#000000;">  
   Chọn  giáo viên         
     <asp:DropDownList ID="ddlGiaoVien" CssClass="combobox" runat="server" 
        AutoPostBack="False" onselectedindexchanged="ddlKhoi_SelectedIndexChanged"></asp:DropDownList> 
                   

                          </fieldset>        
          
            <section class="main grid">
                
                <section class="content">
                    <section class="top">
                        <nav>

                            <div class="clear"></div>
                        </nav>
                        <section class="header">
                            <table>
                                <tr>
                                    <th class="col50">STT</th>
                                    <th class="col300">Tên lớp</th>
                                   <%-- <th class="col300">Ngày sinh</th>--%>
                                    <th>Chọn</th>
                                </tr>
                            </table>
                        </section>
                    </section><!--#end top-->
                    <section class="bottom" style="height:401px;">
                       
  <asp:Repeater ID="rptA" runat="server" OnItemDataBound="rpt_ItemDataBound">
        <HeaderTemplate>
            <table>
        </HeaderTemplate>
        <ItemTemplate>
            <tr id="<%#Eval("Id")%>">
                 <td class="col50"><%= Stt++%></td>
                    <td class="col300"><%#Eval("Name")%></td>
                   <%-- <td class="col300"><%#Eval("StudentBirthday")%></td>--%>
                       <td > <asp:CheckBox ID="ChBox" runat="server" /></td>
                        <td > <asp:HiddenField ID="HdField" runat="server" Value='<%#Eval("Id")%>'></asp:HiddenField></td>
                <%--   <td > <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#Eval("Unrefuge")%>'></asp:HiddenField></td>--%>
                  
                   <%-- <td><%#Eval("Year")%></td>
                  <%--  <td><%#Eval("")%></td>--%>
                </tr>
                 
        </ItemTemplate>
       <FooterTemplate>
            </table>
       </FooterTemplate>
    </asp:Repeater>
                    </section><!--#end bottom-->
                    <section class="pagging">
                        <section class="page">
                          <cc1:CollectionPager ID="Cpage" runat="server"
            BackNextDisplay="HyperLinks" BackNextLinkSeparator="" 
            FirstText="" HideOnSinglePage="False" LastText="" 
            MaxPages="200" PageNumbersDisplay="Numbers" PageNumbersSeparator="&amp;nbsp;" 
            PageSize="16" PagingMode="QueryString" QueryStringKey="Page" 
            ShowFirstLast="False"  ShowLabel="False" ShowPageNumbers="True" BackText="Trang trước" 
            NextText="Trang tiếp" ResultsLocation="None" ResultsStyle="" LabelStyle="">
            </cc1:CollectionPager>
                        </section><!--#end page-->
                        <div class="clear"></div>
                    </section><!--#end pagging-->
                </section><!--#end content-->
            </section><!--#end main-->
               
                <section class="clear">
                </section><!--End .clear-->
            <section class="bottom-content">
            	<section class="bottom-left-content">
            	<input class="button-pop-up" type="submit" value="Trợ giúp"/>               
                </section><!--END .bottom-left-content-->
                <section class="bottom-right-content">
            		<input class="button-pop-up" type="button" value="Cập nhật" id="btnUpdate" runat="server" OnServerClick="btnUpdate_Click"/>   
                <input class="button-pop-up" type="button" value="Hủy bỏ" onclick="Thoat()"/>                
                </section><!--END .bottom-right-content-->
				<section class="clear"></section>
            </section><!--End .bottom-content-->
        </section><!--End .content-->
    </section><!--END.wrapper-->
    </form>
</body>
</html>
<script type="text/javascript">
    function Thoat() {
        window.parent.closeColorBox();
    }

    //$('document').ready(function ()
    $('#btnUpdate').click(function () {
        validateInPut();
    });
    function validateInPut() {
        if ($('#txtMaNK').attr("value") == "") {
            alert("Chưa nhập mã!");
            return false;
        }

        if ($('#txtTenNK').attr("value") == "") { //# null
            alert("Chưa nhập tên!");
            return false;
        }

        if ($('#namNK').attr("value") == "") {
            alert("Chưa nhập năm!");
            return false;
        }
        return true;
    }
</script>